// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
//import './mock/index.js'//导入mock数据文件
import './mock/index2'//导入mock数据文件
import axios from 'axios'//导入axios组件
Vue.prototype.$http=axios //把axios组件绑定在Vue原型对象

import ElementUI from 'element-ui';//导入ElementUI组件
import 'element-ui/lib/theme-chalk/index.css';//导入ElementUI组件样式
Vue.use(ElementUI)//把ElementUI挂载到Vue对象

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
